<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <title>{{config('app.host_name')}}后台管理系统</title>
        <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
        <link rel="stylesheet" href="//cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">
        <link rel="stylesheet" href="{{env('URL_SUB', '')}}/bower_components/AdminLTE/dist/css/AdminLTE.min.css">
        <link rel="stylesheet" href="{{env('URL_SUB', '')}}/bower_components/AdminLTE/dist/css/skins/_all-skins.min.css">
        <link rel="stylesheet" href="{{env('URL_SUB', '')}}/bower_components/AdminLTE/plugins/iCheck/all.css">
        <script src="http://cdn.bootcss.com/jquery/2.2.3/jquery.min.js"></script>
        <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
        <script>
            var AdminLTEOptions = {
                //Enable sidebar expand on hover effect for sidebar mini
                //This option is forced to true if both the fixed layout and sidebar mini
                //are used together
                sidebarExpandOnHover: true,
                //BoxRefresh Plugin
                enableBoxRefresh: true,
                //Bootstrap.js tooltip
                enableBSToppltip: true
            };
        </script>
        <script src="{{env('URL_SUB', '')}}/bower_components/AdminLTE/dist/js/app.min.js" type="text/javascript"></script>
        <style type="text/css">
            .wrapper{z-index: 9999;}
            .modal-dialog{margin: 150px auto;}
        </style>
    </head>

    <body class="skin-blue sidebar-mini">
        <div class="wrapper">
            <header class="main-header">

                <!-- Logo -->
                <a href="{{env('URL_SUB', '')}}/login" class="logo">
                    <!-- mini logo for sidebar mini 50x50 pixels -->
                    <span class="logo-mini"><b>A</b>LT</span>
                    <!-- logo for regular state and mobile devices -->
                    <span class="logo-lg">{{config('app.host_name')}}</span>
                </a>

                <!-- Header Navbar: style can be found in header.less -->
                <nav class="navbar navbar-static-top">
                    <!-- Sidebar toggle button-->
                    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                        <span class="sr-only">Toggle navigation</span>
                    </a>
                    <ul class="nav navbar-nav navbar-custom-menu">
                        <li>
                            <a href="javascrpt:void(0);">{{Auth::user()->user}}</a>
                        </li>

                        <!-- Control Sidebar Toggle Button -->
                        <li>
                            <a href="{{env('URL_SUB', '')}}/auth/logout">Logout</a>
                        </li>
                    </ul>
                </nav>
            </header>

            <aside class="main-sidebar">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar" style="height: auto;">
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li class="header">dashboard</li>
                        <li class="{{strpos(Request::path(),'dashboard')!==false?'active':''}}"><a href="{{env('URL_SUB', '')}}/dashboard"><i
                                    class="fa fa" aria-hidden="true"></i> <span>dashboard</span></a></li>

                        <li class="header">系统</li>
                        @if(strpos(Request::path(),'admin/hillclimb/awardlist')!==false ||
                            strpos(Request::path(),'admin/hillclimb/winlist')!==false ||
                            strpos(Request::path(),'admin/hillclimb/ranking1')!==false ||
                            strpos(Request::path(),'admin/hillclimb/ranking2')!==false ||
                            strpos(Request::path(),'admin/hillclimb/ranking3')!==false ||
                            strpos(Request::path(),'admin/hillclimb/user')!==false ||
                            strpos(Request::path(),'admin/hillclimb/api')!==false ||
                            strpos(Request::path(),'admin/hillclimb/postcoupon')!==false ||
                            strpos(Request::path(),'admin/hillclimb/share')!==false ||
                            strpos(Request::path(),'admin/hillclimb/coupon')!==false ||
                            strpos(Request::path(),'admin/hillclimb/rankdetail')!==false)
                        <li class="treeview active">
                            @else
                        <li class="treeview">
                            @endif
                            <a href="#">
                                <i class="fa fa-pie-reply"></i>
                                <span>登山</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
<!--                                <li class="{{strpos(Request::path(),'admin/hillclimb/awardlist')!==false?'active':''}}"><a
                                        href="{{env('URL_SUB', '')}}/admin/hillclimb/awardlist"><i class="fa fa-circle-o"></i> 奖品列表</a></li>
                                <li class="{{strpos(Request::path(),'admin/hillclimb/winlist')!==false?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/winlist"><i class="fa fa-circle-o"></i>中奖列表</a></li>-->
                                <li class="{{strpos(Request::path(),'admin/hillclimb/ranking1')!==false || strpos(Request::path(),'admin/hillclimb/ranking2')!==false || strpos(Request::path(),'admin/hillclimb/ranking3')!==false || strpos(Request::path(),'admin/hillclimb/rankdetail')!==false ?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/ranking1"><i class="fa fa-circle-o"></i>排名</a></li>
                                <li class="{{strpos(Request::path(),'admin/hillclimb/coupon')!==false ?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/coupon"><i class="fa fa-circle-o"></i>京东券管理</a></li>
                                <li class="{{strpos(Request::path(),'admin/hillclimb/postcoupon')!==false ?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/postcoupon"><i class="fa fa-circle-o"></i>派发京东券</a></li>
                                <li class="{{strpos(Request::path(),'admin/hillclimb/user')!==false ?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/user"><i class="fa fa-circle-o"></i>用户列表</a></li>
                                <li class="{{strpos(Request::path(),'admin/hillclimb/api')!==false ?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/api"><i class="fa fa-circle-o"></i>接口调用日志列表</a></li>
                                <li class="{{strpos(Request::path(),'admin/hillclimb/share')!==false ?'active':''}}"><a
                                            href="{{env('URL_SUB', '')}}/admin/hillclimb/share"><i class="fa fa-circle-o"></i>分享日志列表</a></li>

                            </ul>
                        </li>
<!--                            @if(strpos(Request::path(),'admin/staff/user')!==false)
                                <li class="treeview active">
                            @else
                                <li class="treeview">
                                    @endif
                                    <a href="{{env('URL_SUB', '')}}/admin/staff/user">
                                        <i class="fa fa-pie-reply"></i>
                                        <span>客服MM</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>

                                </li>-->
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <div class="content-wrapper" style="position:relative;">
                @yield('content')
            </div>
        </div>
    </body>

</html>
